(global.webpackJsonp = global.webpackJsonp || []).push([ [ "retain/retain/addRetain" ], {
    "07e5": function(e, t, o) {},
    "3d3d": function(e, t, o) {
        (function(e) {
            o("1067"), n(o("66fd"));
            var t = n(o("aa1b"));
            function n(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = o, e(t.default);
        }).call(this, o("543d").createPage);
    },
    "826f": function(e, t, o) {
        (function(e) {
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0;
            var n, r = o("26cb"), i = o("8434"), a = (o("a71e"), o("db8f"), o("1ff5")), u = o("b806"), s = o("7960");
            function c(e, t) {
                var o = Object.keys(e);
                if (Object.getOwnPropertySymbols) {
                    var n = Object.getOwnPropertySymbols(e);
                    t && (n = n.filter(function(t) {
                        return Object.getOwnPropertyDescriptor(e, t).enumerable;
                    })), o.push.apply(o, n);
                }
                return o;
            }
            function f(e, t, o) {
                return t in e ? Object.defineProperty(e, t, {
                    value: o,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : e[t] = o, e;
            }
            var d = {
                data: function() {
                    return {
                        img: "",
                        textMsg: "",
                        phone: "",
                        name: "",
                        code: "",
                        bgs: !1,
                        formShow: !1,
                        isChooseImg: !1,
                        form_id: "",
                        info: {
                            in_agreement_title: ""
                        },
                        infoData: "",
                        isShow: !1,
                        courseLists: {
                            data: [],
                            params: {
                                bgColor: "#FFFFFF",
                                bottomRadius: "0px",
                                num: "5",
                                outColor: "#FFFFFF",
                                outType: "1",
                                paddingBottom: "0px",
                                paddingLR: "5px",
                                paddingTop: "5px",
                                priceColor: "#FF5555",
                                show: "1",
                                sourse: "1",
                                titleColor: "#333333",
                                topRadius: "0px",
                                type: "2",
                                type_id: null,
                                type_name: null,
                                viewColor: "#999999"
                            }
                        },
                        products: {
                            data: [],
                            params: {
                                bgColor: "#FF3C29",
                                bgType: "1",
                                bottomRadius: "6px",
                                btnColor: "#FF3C29",
                                btnType: "1",
                                goodBgColor: "#FFFFFF",
                                isBtn: "1",
                                isLinePrice: "1",
                                isMake: "0",
                                isPrice: "1",
                                isSales: "1",
                                linePriceColor: "#969696",
                                lineTitle: "原价",
                                makeColor: "#367bf5",
                                makeTitle: "推荐",
                                makeType: "1",
                                num: "10",
                                paddingBottom: "0px",
                                paddingLR: "5px",
                                paddingTop: "5px",
                                priceColor: "#FF3C29",
                                salesColor: "#969696",
                                salesTitle: "销量",
                                show: "1",
                                sourse: "1",
                                titleColor: "#212121",
                                topRadius: "6px",
                                type: "3",
                                type_id: null
                            }
                        }
                    };
                },
                computed: function(e) {
                    for (var t = 1; t < arguments.length; t++) {
                        var o = null != arguments[t] ? arguments[t] : {};
                        t % 2 ? c(Object(o), !0).forEach(function(t) {
                            f(e, t, o[t]);
                        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : c(Object(o)).forEach(function(t) {
                            Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(o, t));
                        });
                    }
                    return e;
                }({}, (0, r.mapGetters)([ "mainColor" ])),
                mounted: function() {
                    var e = this;
                    (0, u.init)(this).then(function(t) {
                        e.getState();
                    });
                },
                methods: (n = {
                    goCourseDetail: function(e) {
                        (0, i.route)({
                            url: "/course/course/courseDetails",
                            type: 1,
                            data: {
                                id: e.id
                            }
                        });
                    },
                    goProductDetail: function(e) {
                        (0, i.route)({
                            url: "/shop/index",
                            type: 1,
                            data: {
                                id: e
                            }
                        });
                    },
                    goXiyi: function() {
                        (0, i.route)({
                            url: "html",
                            data: {
                                url: "Content",
                                type: 4
                            }
                        });
                    },
                    checks: function() {
                        this.$refs.formOrder.Order();
                    },
                    chooseImgs: function(e) {
                        this.isChooseImg = e;
                    },
                    remind: function() {
                        this.bgs = !this.bgs;
                    },
                    getState: function() {
                        var e = this;
                        (0, a.distributeState)({}).then(function(t) {
                            switch (t.is_distributor) {
                              case "1":
                                e.getDistributeInfo();
                                break;

                              case "2":
                                (0, i.route)({
                                    url: "/pages/result/result?type=1&op=1",
                                    type: 3,
                                    data: {
                                        is_distributor: 2
                                    }
                                });
                                break;

                              case "3":
                                (0, i.route)({
                                    url: "/retain/retain/index",
                                    type: 3,
                                    data: {}
                                });
                                break;

                              case "4":
                                e.getDistributeInfo();
                            }
                        }).catch(function(e) {
                            return console.log(e);
                        });
                    },
                    getDistributeInfo: function() {
                        var t = this;
                        (0, a.distributeSet)({}).then(function(o) {
                            t.isShow = !0, t.infoData = o, t.products.data = o.good, t.courseLists.data = o.course, 
                            t.code = o.tjr_title, t.textMsg = o.sqcwfxs_title, t.info.in_agreement_title = o.in_agreement_title, 
                            t.img = o.img, e.setNavigationBarTitle({
                                title: o.cwfxs_title
                            }), t.form_id = 1 * o.form_id, 1 * o.form_id > 0 && 1 == o.condition && (t.$refs.formOrder.getForm(o.form_id, 7), 
                            t.formShow = !0);
                        });
                    },
                    exchange: function(e) {
                        this.checked = !this.checked, this.value = e, this.index = e;
                    },
                    goRetainXy: function() {
                        (0, i.route)({
                            url: "/pages/html/index",
                            type: 1,
                            data: {
                                type: 3
                            }
                        });
                    },
                    sumbit: function() {
                        var e = this;
                        (0, s.h5JudgeLogin)(2).then(function(t) {
                            if (!t) {
                                if ("" === e.name || null === e.name || void 0 === e.name) return e.$toast("姓名不能为空", "none");
                                if ("" === e.phone || null === e.phone || void 0 === e.phone) return e.$toast("手机号码不能为空", "none");
                                if (!/^(?:(?:\+|00)86)?1\d{10}$/.test(e.phone)) return e.$toast("手机号码不正确", "none");
                                if (!e.bgs) return e.$toast("请先选中阅读协议", "none");
                                if (1 * e.form_id > 0) return e.$refs.formOrder.check(), !1;
                                e.putOrder();
                            }
                        });
                    }
                }, f(n, "checks", function() {
                    this.$refs.formOrder.Order();
                }), f(n, "Orders", function(e) {
                    this.form = e, this.putOrder();
                }), f(n, "putOrder", function() {
                    var t = this, o = {
                        name: t.name,
                        phone: t.phone,
                        form_data: t.form
                    };
                    (0, a.becomeDistribute)(o).then(function(t) {
                        e.reLaunch({
                            url: "/pages/result/result?type=1&op=1"
                        });
                    });
                }), n)
            };
            t.default = d;
        }).call(this, o("543d").default);
    },
    aa1b: function(e, t, o) {
        o.r(t);
        var n = o("e7ae"), r = o("e45c");
        for (var i in r) "default" !== i && function(e) {
            o.d(t, e, function() {
                return r[e];
            });
        }(i);
        o("b17f");
        var a = o("f0c5"), u = Object(a.a)(r.default, n.b, n.c, !1, null, "0b3fc4b0", null, !1, n.a, void 0);
        t.default = u.exports;
    },
    b17f: function(e, t, o) {
        var n = o("07e5");
        o.n(n).a;
    },
    e45c: function(e, t, o) {
        o.r(t);
        var n = o("826f"), r = o.n(n);
        for (var i in n) "default" !== i && function(e) {
            o.d(t, e, function() {
                return n[e];
            });
        }(i);
        t.default = r.a;
    },
    e7ae: function(e, t, o) {
        o.d(t, "b", function() {
            return r;
        }), o.d(t, "c", function() {
            return i;
        }), o.d(t, "a", function() {
            return n;
        });
        var n = {
            courseList: function() {
                return Promise.all([ o.e("common/vendor"), o.e("components/courseList/courseList") ]).then(o.bind(null, "4b60"));
            }
        }, r = function() {
            this.$createElement;
            this._self._c;
        }, i = [];
    }
}, [ [ "3d3d", "common/runtime", "common/vendor" ] ] ]);